<?php
/**
 * 火星文转换
 */

/* @var $this yii\web\View */

use yii\helpers\Html;

$this->title = '中文繁简转换';
$this->registerJsFile('ftz.js', ['position' => \yii\web\View::POS_HEAD]);
?>
<div class="site-index">
    <div class="body-content">
        <form method='post'>
            <h2 class="h24"><?php echo $this->title; ?></h2>
            <hr/>
            <div class="form-group">
                <label>输入要繁简转换的内容：</label>
                <textarea rows='10' name='ori' id='txt' class="form-control"></textarea>
            </div>
            <div class="form-group">
                <input type='button' onclick="convert(1)" class="btn btn-primary" value='简体转繁体'/>
                <input type='button' onclick="convert(0)" class="btn btn-danger " value='繁体转简体'/>
            </div>
            <div class="form-group">
                <input type='button' onclick="copy('txt')" class="btn btn-primary" value='复制'/>
                <input type='button' onclick="cut('txt')" class="btn btn-danger " value='剪切'/>
                <input type='button' onclick="txt.value=''" class="btn btn-default " value='清空'/>
            </div>
        </form>
    </div>
</div>
